// const urlHead=`http://120.79.198.159`
const urlHead = '192.168.2.167:8080';
//首页公告
const sysInfoUrl=`${urlHead}/bettingRecord/client/indexSysInfo`
//登录注册
const checkNameUrl=`${urlHead}/userInfo/client/checkName`
const registerUrl=`${urlHead}/userInfo/client/reg`
const sendCodeUrl=`${urlHead}/userInfo/client/sendCode`
const changePhoneNum=`${urlHead}/userInfo/client/changePhoneNum`


const loginUrl=`${urlHead}/userInfo/client/login`

const checkRoomNoUrl=`${urlHead}/warSituationInfo/client/checkRoomNo`

// const publishUrl=`${urlHead}/warSituationInfo/client/publish`
const dareUrl=`${urlHead}/warSituationInfo/client/dare`

const gameListUrl=`${urlHead}/gameInfo/client/gameList`
const raceListUrl=`${urlHead}/raceInfo/client/raceList`

  //个人/userInfo /client/changeSex
 //修改密码、用户名
 const passwordtUrl=`${urlHead}/userInfo/client/changePwd`
 const sexUrl=`${urlHead}/userInfo/client/changeSex`
 const nameUrl=`${urlHead}/userInfo/client/changeName`
 const logoUrl=`${urlHead}/userInfo/client/changeAvatar`

 const forgetPwd=`${urlHead}/userInfo/client/forgetPwd`



 //获取个人信息
 const userInfoUrl=`${urlHead}/userInfo/client/userCenter`

//查看赛事竞猜记录
const jcRecordUrl=`${urlHead}/bettingRecord/client/quizRecord`



// 获取当天下注排行榜
const todayUrl=`${urlHead}/bettingRecord/client/todayTop`
// 当日战队下注排行榜
const todayClanUrl=`${urlHead}/bettingRecord/client/todayClanTop`
// 获取战队详情
const clanInfoUrl=`${urlHead}/clanInfo/client/getClanInfo`
// // 战队获胜总排行
// const allClanUrl=`${urlHead}/bettingRecord/client/clanTotalWin`

//获取游戏列表
const gameList=`${urlHead}/gameInfo/client/gameList`
//根据游戏ID获取比赛列表
const raceList=`${urlHead}/raceInfo/client/raceList`

//获取比赛的房间
const raceRoomList=`${urlHead}/roomInfo/client/raceRoomList`
// 获取竞猜房间的具体信息
const roomInfo=`${urlHead}/roomInfo/client/getRoomInfoByID`

//K线图下注
const gamingQuiz=`${urlHead}/gamingQuiz/client/gamingQuiz`
const gamingOdds=`${urlHead}//gamingOdds/client/getOdds`
const gamingList=`${urlHead}/gamingQuiz/client/listGamingQuiz`

//战队pk
const zdpkUrl=`${urlHead}/warSituationInfo/client/check`

//发布战局

const roomNumUrl=`${urlHead}/warSituationInfo/client/getRoomNo`
const publishUrl=`${urlHead}/warSituationInfo/client/publish`
//获取挑战房间的列表
const tzRoomUrl=`${urlHead}/warSituationInfo/client/listWars`
// 进入挑战房间
const inTzRoomUrl=`${urlHead}/warSituationInfo/client/getRoomInfo`
//判断用户是否正在对战
const isFighting=`${urlHead}/warSituationInfo/client/getPking`
//搜索房间/挑战战局
const searchRoom=`${urlHead}/warSituationInfo/client/getWarInfoByNo`
//挑战战局下注
const tzDareUrl=`${urlHead}/warSituationInfo/client/dare`
// 上传战局截图
const addPicUrl=`${urlHead}/warSituationInfo/client/updateResult`
//获取PK记录
const pkRecordcUrl=`${urlHead}/warSituationInfo/client/getPKRecord`
//手续费
const warfeeUrl=`${urlHead}/warSituationSetup/client/warFees`

//战局列表
const listWarsUrl=`${urlHead}/warSituationInfo/client/listWars`


//获取信息推送（公告类型,0:系统公告,1:活动公告,2:综合讨论）
const systemNotice=`${urlHead}/sysNotice/client/listSysNotice`
//获取系统推送信息（战局公告，充值公告，提现公告）
// const zjNotice=`${urlHead}/webSiteSetting/client/listWebSiteSetting`




//rem自适应
!function(e,t){function n(){var t=o.getBoundingClientRect().width;t/l>750&&(t=750*l);var n=t/10;o.style.fontSize=n+"px",d.rem=e.rem=n}var i,r=e.document,o=r.documentElement,a=r.querySelector('meta[name="viewport"]'),s=r.querySelector('meta[name="flexible"]'),l=0,c=0,d=t.flexible||(t.flexible={});if(a){console.warn("将根据已有的meta标签来设置缩放比例");var u=a.getAttribute("content").match(/initial\-scale=([\d\.]+)/);u&&(c=parseFloat(u[1]),l=parseInt(1/c))}else if(s){var p=s.getAttribute("content");if(p){var A=p.match(/initial\-dpr=([\d\.]+)/),h=p.match(/maximum\-dpr=([\d\.]+)/);A&&(l=parseFloat(A[1]),c=parseFloat((1/l).toFixed(2))),h&&(l=parseFloat(h[1]),c=parseFloat((1/l).toFixed(2)))}}if(!l&&!c){var f=(e.navigator.appVersion.match(/android/gi),e.navigator.appVersion.match(/iphone/gi)),g=e.devicePixelRatio;l=f?g>=3&&(!l||l>=3)?3:g>=2&&(!l||l>=2)?2:1:1,c=1/l}if(o.setAttribute("data-dpr",l),!a)if(a=r.createElement("meta"),a.setAttribute("name","viewport"),a.setAttribute("content","initial-scale="+c+", maximum-scale="+c+", minimum-scale="+c+", user-scalable=no"),o.firstElementChild)o.firstElementChild.appendChild(a);else{var m=r.createElement("div");m.appendChild(a),r.write(m.innerHTML)}e.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(n,300)},!1),e.addEventListener("pageshow",function(e){e.persisted&&(clearTimeout(i),i=setTimeout(n,300))},!1),"complete"===r.readyState?r.body.style.fontSize=12*l+"px":r.addEventListener("DOMContentLoaded",function(e){r.body.style.fontSize=12*l+"px"},!1),n(),d.dpr=e.dpr=l,d.refreshRem=n,d.rem2px=function(e){var t=parseFloat(e)*this.rem;return"string"==typeof e&&e.match(/rem$/)&&(t+="px"),t},d.px2rem=function(e){var t=parseFloat(e)/this.rem;return"string"==typeof e&&e.match(/px$/)&&(t+="rem"),t}}(window,window.lib||(window.lib={}));

//返回按钮
$('.goBack').click(function(){
    window.history.go(-1)
    console.log('this')
})
//
var oMeta = document.createElement('meta');
oMeta.content =" telephone=no";
oMeta.name="format-detection"
document.getElementsByTagName('head')[0].appendChild(oMeta);

